﻿using System;

namespace ECommerce.Administration
{
	public partial class NewsManage : AdminBasePage
	{
		protected void Page_Init(object sender, EventArgs e)
		{
		}

		protected void Page_Load(object sender, EventArgs e)
		{
			if(!IsPostBack)
			{
				ButtonAdd.Text = GetLocalResourceString("Admin.AddButtonText");
				ButtonDelete.Text = GetLocalResourceString("Admin.DeleteButtonText");
			}
		}

		protected void ButtonAdd_Click(object sender, EventArgs e)
		{
			Server.Transfer("EditNews.aspx");
		}

		protected void ButtonDelete_Click(object sender, EventArgs e)
		{
			this.NewsListControl.DeleteSelectedNews();
		}
	}
}
